<tr>
<td>
	<?php echo CHtml::link('<img src = "/images/right.gif" />'.$data->p_name,array('product/view/id/'.$data->p_id)); ?>
</td>	
<td>
	<?php 
		$category = Category::model()->getCategory();
		echo CHtml::link($category[$data->p_gid],array('product/index/p_gid/'.$data->p_gid));
	?>
</td>	
</tr>